package com.fable.common.dto;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.*;
import com.alibaba.excel.enums.BooleanEnum;
import com.alibaba.excel.enums.poi.FillPatternTypeEnum;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import com.fable.ntzw_ga.entity.GuestMap;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

/**
 * @author Created by gzh 2023-02-05 23:12:37
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@ContentRowHeight(45)
@HeadRowHeight(50)
@HeadFontStyle(fontName = "黑体",fontHeightInPoints = 16,bold = BooleanEnum.FALSE)
@HeadStyle(fillPatternType = FillPatternTypeEnum.SOLID_FOREGROUND, fillForegroundColor = 72)
public class GuestDTO {

    @ExcelIgnore
    private String id;

    @ExcelProperty(value = {"宾客信息","入席时间"},order = 11,index = 4)
    @DateTimeFormat("yyyy-MM-dd")
    private Date createTime;

    @ExcelProperty(value ={"宾客信息","姓名"} ,index = 0)
    private String name;

    @ExcelProperty(value = {"宾客信息","礼金"},order = 11)
    private Double gift;

    @ExcelProperty(value = {"宾客信息","礼品"},order = 11)
    private String gifts;

    @ExcelProperty(value = {"宾客信息","地址"},order = 11)
    private String address;

    @ExcelProperty(value = {"宾客信息","酒席类型"})
    private String remarks;

    @ExcelIgnore
    private String feastTypeId;

    @ExcelIgnore
    private GuestMap guestMap;

    @ExcelIgnore
    private Double recompense;

    @ExcelIgnore
    private String filed;//排序字段

    @ExcelIgnore
    private String orderBy;//排序类型

    @ExcelIgnore
    private LocalDateTime updateTime;

}
